<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>首页-{$lnshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$lnshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$lnshop_config['shop_info_store_desc']}" />
</head>
<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->
<!-- 首页轮播图片 轮播js 广告-->
<script src="__STATIC__/js/slider.js"></script>
<script type="text/javascript">
// 首页轮播图片 轮播js 广告
$(function() {
	var bannerSlider = new Slider($('#banner_tabs'), {
		time: 5000,
		delay: 400,
		event: 'hover',
		auto: true,
		mode: 'fade',
		controller: $('#bannerCtrl'),
		activeControllerCls: 'active'
	});
	$('#banner_tabs .flex-prev').click(function() {
		bannerSlider.prev()
	});
	$('#banner_tabs .flex-next').click(function() {
		bannerSlider.next()
	});
})
</script>
<!-- 首页轮播图片 轮播js 广告 end-->
<!--------banner-开始-------------->
	<div class="nav-banner">
        <div id="banner_tabs" class="flexslider">
            <ul class="slides">                
            <!---广告 select * from __PREFIX__ad where position_id = 2 limit 1-->
            <adv limit="5" item="v" pid="2">
                <li>
                    <a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if>>                       
                        <img src="{$v[ad_code]}" width="980" height="400"  title="{$v[title]}" style="{$v[style]}"/>
                    </a>
                </li>
   			</adv>          
            </ul>
            <!--<ul class="flex-direction-nav">
                <li><a class="flex-prev" href="javascript:;">Previous</a></li>
                <li><a class="flex-next" href="javascript:;">Next</a></li>
            </ul>-->
            <ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
		     <adv  pid = "2" limit="5" item="v" key="k">
                <li><a>{$k}</a></li>
             </adv>   
            </ol>
    	</div>	
	</div>
<!--------banner-结束-------------->

<!--------热卖-首发-新闻-公告-开始-------------->
    <div class="layout">
    	<div class="bs-le">
        	<div class="first">
            	<ul>                 
               <foreach name="hot_seller" key="k" item="v">
            		<li class="sellers">
                    	<div class="best">
                        	<div class="best-about">
                            	<div class="best_img" style="margin-top:50px; height:220px;">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                                        <img src="{$v.goods_id|goods_thum_images=180,180}" style="width:180px; height:180px;" onerror="this.src='{$v.original_img}'"/>
                                    </a>
                                </div>
                                <div class="best_name">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                                    <span>{$v.goods_name|getSubstr=0,12}</span>
                                    </a>
                                </div>
                                <div class="best_Introduction">
                                	<div class="intr-t">{$v['goods_remark']|getSubstr=0,30}</div>
                                	<div class="intr-b">买的更多更优惠</div>
                                </div>
                                <div class="price">
                                	<span>¥</span><em>{$v['shop_price']}</em>
                                </div>
                                <div class="imm-button">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><span>立即抢购</span></a>
                                </div>
                                <div class="tag">
                                    <if condition="$v['is_new'] eq 1">
                                        <img src="__STATIC__/images/1382593860805.png" alt="新品" />
                                        <else/>
                                        <if condition="$v['is_hot'] eq 1 ">
                                            <img src="__STATIC__/images/1382542488099.png" alt="热卖" />
                                        </if>
                                    </if>

                                </div>
                            </div>
                        </div>
                    </li>
            	 </foreach>
            	</ul>
            </div>
        </div>
    	<div class="bs-ri">
        	<div class="ris-adve"><!--公告上方广告位-->
                <adv  limit="1" item="v" pid="7"> 
                    <a href="{$v[ad_link]}" <if condition="$v['target'] eq 1">target="_blank"</if>>
	            		<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}"/>
                    </a>
				</adv>
            </div>
        	<div class="ris-notice">
            	<div class="notice_t">
                	<ul>
                		<li id="not_col"><a href="">公告</a></li>
                		<li id="not_new"><a href="">新闻</a></li>
                	</ul>
                </div>
            	<div class="notice_b">
                	<ul class="nob1">
                            <foreach name="not_col" item="v" key="k" >
                		<li><a href="{:U('Home/Article/detail',array('article_id'=>$v[article_id]))}">{$v['title']|getSubstr=0,18}</a></li>
                            </foreach>
                	</ul>
                    <ul class="nob2">
                            <foreach name="not_new" item="v" key="k" >
                		<li><a href="{:U('Home/Article/detail',array('article_id'=>$v[article_id]))}">{$v['title']|getSubstr=0,18}</a></li>
                            </foreach>
                     </ul>
                </div> 
             </div>
             <!--公告下方广告位-->
        	 <div class="ris-as"> 
                <adv  limit="1" item="v" pid="8">
                     <p><a href="{$v[ad_link]}" <if condition="$v['target'] eq 1">target="_blank"</if> ><img src="{$v[ad_code]}" width="278" height="132" title="{$v[title]}" style="{$v[style]}"></a></p>                
                </adv>
            </div>
        	</div>	
        </div>
            
    </div>

<!--------热卖-首发-新闻-公告-结束-------------->

	
<!--------中部banner-开始-------------->
	<div class="layout">
    	<div class="cen-banne">
            <adv  pid = "3" limit="1" item="v">            
    	        <a href="{$v['ad_link']}" <if condition="$v['target'] eq 1">target="_blank"</if>>
        	        <img src="{$v['ad_code']}" width="1200" height="160"  title="{$v[title]}" style="{$v[style]}"/>
	            </a>    
             </adv>   
        </div>
    </div>
<!--------中部banner-结束-------------->

<!--------楼层-开始-------------->
<foreach name="category_list" key="key" item='val'>

	<div class="layout layer">
    	<div class="ground-flool">
        	<div class="flool-t">
            	<h2><a href="{:U('/Home/Goods/goodsList', array('id'=>$val['id']))}">{$val[name]}</a></h2>
                <foreach name="val['second']" key="key2" item='val2'>
	                <em><a href="{:U('/Home/Goods/goodsList', array('id'=>$val2['id']))}">{$val2[name]}</a></em>
                </foreach>
                <ul><!--
					<li><a href="{:U('/Home/Goods/goodsList',array('brand_id'=>1))}">诺基亚</a></li>
                    -->
                </ul>
            </div>
        	<div class="flool-b layer layer-b">
            	<ul class="flool-cle">
            		<li class="sellers sell_ons">
                    	<div class="best">
                        <foreach name="val['goods']" key="k" item='v'>
                        	<div class="best-about">
                            	<div class="best_img best_img2">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><img src="{$v.goods_id|goods_thum_images=222,222}" /></a>
                                </div>
                                <div class="best_name">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><span>{$v.goods_name|getSubstr=0,18}</span></a>
                                </div>
                                <div class="best_Introduction">
                                	<div class="intr-t">{$v.keywords}</div>
                                	<div class="intr-b">{$v.goods_remark|getSubstr=0,51}</div>
                                </div>
                                <div class="price">
                                	<span>¥</span><em>{$v.shop_price}</em>
                                </div>
                                <div class="imm-button">
                                	<a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><span>立即抢购</span></a>
                                </div>
                                <div class="tag">
                                    <if condition="$v['is_new'] eq 1">
                                        <img src="__STATIC__/images/1382593860805.png" alt="新品" />
                                        <else/>
                                        <if condition="$v['is_hot'] eq 1 ">
                                            <img src="__STATIC__/images/1382542488099.png" alt="热卖" />
                                        </if>
                                    </if>
                                </div>
                            </div>
                            </foreach>
                        </div>
                    </li>
                    <foreach name="val['goods2']" item='v'>
                        <li class="sellers sellers2 sell_ons">
                            <div class="best">
                                <div class="best-about">
                                    <div class="best_img best_img2 best_img3">
	                                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><img src="{$v.goods_id|goods_thum_images=222,222}" /></a>
                                    </div>
                                        <div class="intr-t intr-t3">{$v.goods_name|getSubstr=0,18}</div>
                                    <div class="price prices">
                                        <span>¥</span><em>{$v.shop_price}</em>
                                    </div>
                                    <div class="tag">
                                        <if condition="$v['is_new'] eq 1">
                                            <img src="__STATIC__/images/1382593860805.png" alt="新品" />
                                            <else/>
                                            <if condition="$v['is_hot'] eq 1 ">
                                                <img src="__STATIC__/images/1382542488099.png" alt="热卖" />
                                            </if>
                                        </if>
                                    </div>
                                </div>
                            </div>
                        </li>
			       </foreach>
                 </ul>
            </div>
        </div>
    </div>
</foreach>
<!--------楼层-结束-------------->
 

<!--------底部banner-开始-------------->
	<div class="layout layer">
    	<div class="cen-banne">
            <adv  pid = "4" limit="1" item="v">            
    	        <a href="{$v['ad_link']}" <if condition="$v['target'] eq 1">target="_blank"</if>>
        	        <img src="{$v['ad_code']}" width="1200" height="160" title="{$v[title]}" style="{$v[style]}"/>
	            </a>    
             </adv>            
        </div>
    </div>
<!--------底部banner-结束-------------->

<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
<script>	
$(document).ready(function(){
			
		  /* 新闻和公告的 js 切换*/
		  $(".nob2").css("display", "none");			
		  $("#not_col").hover(function(){
			$(".nob1").css("display", "block");
			$(".nob2").css("display", "none");
			$(this).css('background-color','#FFF');
			$("#not_new").css('background-color','#fcf7f7');
		  });
		   /* 新闻和公告的 js 切换*/
		  $("#not_new").hover(function(){
			$(".nob2").css("display", "block")
			$(".nob1").css("display", "none");
			$(this).css('background-color','#FFF');
			$("#not_col").css('background-color','#fcf7f7');
		  })

});		
</script>	 

<script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--获取get参数插件-->
<script> 
set_first_leader(); //设置推荐人 
// 如果是手机浏览器跳到手机
if(isMobileBrowser())
   location.href="{:U('Mobile/Index/index')}";
</script>

</body>
</html>